package com.yanqu.road.entity.activity.zhenhuan.thirdProcess;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Set;

@FieldTypeAnnotation(tableName = "t_u_zhenhuan_third", desc = "甄嬛传第三阶段数据")
public class UserZhenHuanThirdProcessData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(select = true, update = true, desc = "用户id")
    private long userId;
    @FieldTypeAnnotation(desc = "最近一次参加宴会的时间")
    private long lastJoinTime;
    @FieldTypeAnnotation(desc = "点赞记录")
    private boolean isWorship;

    public UserZhenHuanThirdProcessData() {
    }

    public UserZhenHuanThirdProcessData(int activityId, long userId) {
        this.activityId = activityId;
        this.userId = userId;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getLastJoinTime() {
        return lastJoinTime;
    }

    public void setLastJoinTime(long lastJoinTime) {
        this.lastJoinTime = lastJoinTime;
        setUpdateOption();
    }

    public boolean isWorship() {
        return isWorship;
    }

    public void setWorship(boolean worship) {
        isWorship = worship;
        setUpdateOption();
    }
}
